import { http } from '@/utils/http/axios';

/**
 * @description: 获取二轮订单列表
 */
export function erlunlist(params) {
    return http.request({
        url: '/order/erlunlist',
        method: 'GET',
        params
    });
}

/**
 * @description: 获取四轮订单列表
 */
export function silunlist(params) {
    return http.request({
        url: '/order/silunlist',
        method: 'GET',
        params
    });
}

/**
 * @description: 获取所有订单列表
 */
export function orderlist(params) {
    return http.request({
        url: '/order/orderlist',
        method: 'GET',
        params
    });
}

/**
 * 订单详情
 */
export function info(params) {
    return http.request({
        url: '/order/orderinfo',
        method: 'POST',
        params
    })
}

/**
 * 删除订单
 */
export function orderDel(params) {
    return http.request({
        url: '/order/delete',
        method: 'POST',
        params
    })
}

/**
 * 订单金额统计
 */
export function orderdata(params) {
    return http.request({
        url: '/order/orderdata',
        method: 'POST',
        params
    })
}

/**
 * 取消订单
 */
export function orderQuxiao(params) {
    return http.request({
        url: '/xcx/ordercancel',
        method: 'POST',
        params
    })
}

/**
 * 恢复订单
 */
export function orderHuifu(params) {
    return http.request({
        url: '/xcx/orderresume',
        method: 'POST',
        params
    })
}

/**
 * 退款订单--微信
 */
export function orderTuikuan(params) {
    return http.request({
        url: '/orderx/refunds',
        method: 'POST',
        params
    })
}

/**
 * 退款订单--支付宝
 */
export function orderTuikuanalipay(params) {
    return http.request({
        url: '/alipay/refund',
        method: 'POST',
        params
    })
}

